import React from 'react'
import {Button} from 'antd'
import { ReactRxg } from '@utils/reactRxg'


interface IProps{
    name:string
}

class Test extends ReactRxg<IProps>{
    static defaultProps = {
        name: "yl"
    }
    showMsg = () => {
        this.$message.success("英俊")
    }
    render() {
        let {name} = this.props
        return (
            <div>
                <div>
                    {
                        name
                    }
                </div>
                <Button 
                    type="primary"
                    onClick={this.showMsg}
                >按钮</Button>
            </div>
        )
    }
}

export default Test
